package com.bsj.pay.util;

import java.util.concurrent.ScheduledThreadPoolExecutor;

public class ThreadPoolUtils {

	private static ScheduledThreadPoolExecutor queryOrderStatePool = new ScheduledThreadPoolExecutor(500);
	
	private static ScheduledThreadPoolExecutor queryAccountOrderStatePool = new ScheduledThreadPoolExecutor(500);
	
	private static ScheduledThreadPoolExecutor checkChargeAccountPool = new ScheduledThreadPoolExecutor(200);
	
	private static ScheduledThreadPoolExecutor merchantNotifyPool = new ScheduledThreadPoolExecutor(200);
	
	private static ScheduledThreadPoolExecutor orderPool = new ScheduledThreadPoolExecutor(200);
	
	private static ScheduledThreadPoolExecutor submitOrderPool = new ScheduledThreadPoolExecutor(500);
	
	private static ScheduledThreadPoolExecutor accountOnlinePool = new ScheduledThreadPoolExecutor(500);

	private static ScheduledThreadPoolExecutor payPool = new ScheduledThreadPoolExecutor(200);

	public static ScheduledThreadPoolExecutor getAccountOnlinePool() {
		return accountOnlinePool;
	}
	
	public static ScheduledThreadPoolExecutor getSubmitOrderPoolPool() {
		return submitOrderPool;
	}
	public static ScheduledThreadPoolExecutor getCheckChargeAccountPool() {
		return checkChargeAccountPool;
	}
	
	public static ScheduledThreadPoolExecutor getOrderPool() {
		return orderPool;
	}
	
	public static ScheduledThreadPoolExecutor getMerchantNotifyPool() {
		return merchantNotifyPool;
	}
	
	public static ScheduledThreadPoolExecutor getQueryOrderStatePool() {
		return queryOrderStatePool;
	}
	
	public static ScheduledThreadPoolExecutor getQueryAccountOrderStatePool() {
		return queryAccountOrderStatePool;
	}


	public static ScheduledThreadPoolExecutor getPayPool() {
		return payPool;
	}
}

